﻿import flash.external.*

function set_nickname(iSide:Number, nickname)
{
	txtNickname.text = nickname;
	btnCard._x = (txtNickname._width - txtNickname.textField.textWidth) / 2 - btnCard._width;
	btnCard.iSide = iSide;
}

function show_card(e:Object)
{
	ExternalInterface.call("td_ui_wait.show_card", e.target.iSide);
}
btnCard.addEventListener("click", this, "show_card");

set_nickname(1, "12345678901234567890");